<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>HH_GET_WIN_HANDLE command</TITLE>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
</head>

<BODY>

<h1>HH_GET_WIN_HANDLE command</h1>

<p>Returns the handle (hwnd) of a specified window type.</p> 

<br>
<table border=1 cellpadding=3 cellspacing=0 width=100%>
<TR VALIGN="top">
<TH><I>pszFile</I></TH>
<TH><I>dwData</I></TH>
</TR>

<TR VALIGN="top">
<TD>
Specifies the name of the compiled help (.chm) file in which the window type is defined.  
</TD>
<TD>
Specifies the name of the window type whose handle you want to return. 
</TD>
</TR>
</TABLE>

<H2>Example</H2>
<p><pre><code>
<br>HtmlHelp(
<br>         hwndCaller,
<br>         "c:\\MyHelpFile.chm,
<br>         HH_GET_WIN_HANDLE,
<br>         (DWORD) "MyWindowType") ;
<p></pre></code>

<H2>Return value</H2>
<ul>
<li>The handle (hwnd) of the window type specified in the <i>dwData</i> parameter.</li>
<li>NULL, if the help window has not yet been created.</li>
</ul>


<H2>Comments</H2>
<ul>
<li>Always specify the name of the compiled help (.chm) file in which the window type is defined when calling an API command. If the window type is not defined in a compiled help file, then specify NULL.
</li>
</ul>

<H2>See also</H2>
<p><a href="cmd_hh_get_win_type.htm">HH_GET_WIN_TYPE</a>
<br><a href="cmd_hh_set_win_type.htm">HH_SET_WIN_TYPE</a></p>

<br>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td valign="top"><a href="ov_about_htmlhelp_commands.htm"><img src="home.gif" width=20 height=18 alt="link to overview topic" border="0"></a>
</td>
<td><a href="ov_about_htmlhelp_commands.htm">About commands</A>
</td>
</tr>
<tr>
<td>&nbsp;
</td>
</tr>
</table>


<br>
<!--start keywords--->

<!--end keywords--->


</BODY>
</HTML>
